ইউডিপি
এই মডিউলটিতে এমন ফাংশন রয়েছে যা UDP যোগাযোগ নিয়ন্ত্রণ করে।
সারসংক্ষেপ
| গণনা | |
|---|---|
| otNetifIdentifier { | enum  OpenThread নেটওয়ার্ক ইন্টারফেস শনাক্তকারী সংজ্ঞায়িত করে।  | 
| Typedefs | |
|---|---|
| otNetifIdentifier | typedef enum otNetifIdentifier OpenThread নেটওয়ার্ক ইন্টারফেস শনাক্তকারী সংজ্ঞায়িত করে। | 
| otUdpHandler )(void *aContext, const otMessage *aMessage, const otMessageInfo *aMessageInfo) | typedef bool(* এই কলব্যাকটি ওপেন থ্রেডকে নির্দিষ্ট UDP বার্তাগুলির জন্য নির্দিষ্ট হ্যান্ডলার প্রদান করার অনুমতি দেয়। | 
| otUdpReceive )(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo) | typedef void(* এই কলব্যাকটি OpenThread-কে একটি প্রাপ্ত UDP বার্তার আবেদন জানানোর অনুমতি দেয়। | 
| otUdpReceiver | typedef struct otUdpReceiver একটি UDP রিসিভার প্রতিনিধিত্ব করে। | 
| otUdpSocket | typedef struct otUdpSocket একটি UDP সকেট প্রতিনিধিত্ব করে।  | 
| ফাংশন | |
|---|---|
| otUdpAddReceiver ( otInstance *aInstance, otUdpReceiver *aUdpReceiver) |  একটি UDP রিসিভার যোগ করে। | 
| otUdpBind ( otInstance *aInstance, otUdpSocket *aSocket, const otSockAddr *aSockName, otNetifIdentifier aNetif) |  একটি UDP/IPv6 সকেট বাঁধুন। | 
| otUdpClose ( otInstance *aInstance, otUdpSocket *aSocket) |  একটি UDP/IPv6 সকেট বন্ধ করুন। | 
| otUdpConnect ( otInstance *aInstance, otUdpSocket *aSocket, const otSockAddr *aSockName) |  একটি UDP/IPv6 সকেট সংযোগ করুন। | 
| otUdpGetSockets ( otInstance *aInstance) |  UDP সকেটের লিঙ্কযুক্ত তালিকার প্রধান পায়। | 
| otUdpIsOpen ( otInstance *aInstance, const otUdpSocket *aSocket) | bool একটি UDP সকেট খোলা আছে কিনা তা পরীক্ষা করুন। | 
| otUdpNewMessage ( otInstance *aInstance, const otMessageSettings *aSettings) |  একটি UDP বার্তা পাঠানোর জন্য একটি নতুন বার্তা বাফার বরাদ্দ করুন৷ | 
| otUdpOpen ( otInstance *aInstance, otUdpSocket *aSocket, otUdpReceive aCallback, void *aContext) |  একটি UDP/IPv6 সকেট খুলুন। | 
| otUdpRemoveReceiver ( otInstance *aInstance, otUdpReceiver *aUdpReceiver) |  একটি UDP রিসিভার সরিয়ে দেয়। | 
| otUdpSend ( otInstance *aInstance, otUdpSocket *aSocket, otMessage *aMessage, const otMessageInfo *aMessageInfo) |  একটি UDP/IPv6 বার্তা পাঠান। | 
| otUdpSendDatagram ( otInstance *aInstance, otMessage *aMessage, otMessageInfo *aMessageInfo) |  সকেট ছাড়াই একটি UDP বার্তা পাঠায়।  | 
| কাঠামো | |
|---|---|
| otUdpReceiver | একটি UDP রিসিভার প্রতিনিধিত্ব করে। | 
| otUdpSocket | একটি UDP সকেট প্রতিনিধিত্ব করে। | 
গণনা
otNetifIdentifier
otNetifIdentifier
Typedefs
otNetifIdentifier
enum otNetifIdentifier otNetifIdentifier
OpenThread নেটওয়ার্ক ইন্টারফেস শনাক্তকারী সংজ্ঞায়িত করে।
otUdpহ্যান্ডলার
bool(* otUdpHandler)(void *aContext, const otMessage *aMessage, const otMessageInfo *aMessageInfo)
এই কলব্যাকটি ওপেন থ্রেডকে নির্দিষ্ট UDP বার্তাগুলির জন্য নির্দিষ্ট হ্যান্ডলার প্রদান করার অনুমতি দেয়।
| বিস্তারিত | |||||
|---|---|---|---|---|---|
| রিটার্ন মান | 
 | 
otUdpReceive
void(* otUdpReceive)(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo)
এই কলব্যাকটি OpenThread-কে একটি প্রাপ্ত UDP বার্তার আবেদন জানানোর অনুমতি দেয়।
ফাংশন
otUdpAddReceiver
otError otUdpAddReceiver( otInstance *aInstance, otUdpReceiver *aUdpReceiver )
একটি UDP রিসিভার যোগ করে।
| বিস্তারিত | |||||
|---|---|---|---|---|---|
| পরামিতি | 
 | ||||
| রিটার্ন মান | 
 | 
otUdpBind
otError otUdpBind( otInstance *aInstance, otUdpSocket *aSocket, const otSockAddr *aSockName, otNetifIdentifier aNetif )
একটি UDP/IPv6 সকেট বাঁধুন।
| বিস্তারিত | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| পরামিতি | 
 | ||||||||
| রিটার্ন মান | 
 | 
otUdpক্লোজ
otError otUdpClose( otInstance *aInstance, otUdpSocket *aSocket )
একটি UDP/IPv6 সকেট বন্ধ করুন।
| বিস্তারিত | |||||
|---|---|---|---|---|---|
| পরামিতি | 
 | ||||
| রিটার্ন মান | 
 | 
otUdpConnect
otError otUdpConnect( otInstance *aInstance, otUdpSocket *aSocket, const otSockAddr *aSockName )
একটি UDP/IPv6 সকেট সংযোগ করুন।
| বিস্তারিত | |||||||
|---|---|---|---|---|---|---|---|
| পরামিতি | 
 | ||||||
| রিটার্ন মান | 
 | 
otUdpGetSockets
otUdpSocket * otUdpGetSockets( otInstance *aInstance )
UDP সকেটের লিঙ্কযুক্ত তালিকার প্রধান পায়।
| বিস্তারিত | |||
|---|---|---|---|
| পরামিতি | 
 | ||
| রিটার্নস |  UDP সকেট লিঙ্কযুক্ত তালিকার প্রধানের একটি পয়েন্টার।  | 
otUdpIsOpen
bool otUdpIsOpen( otInstance *aInstance, const otUdpSocket *aSocket )
একটি UDP সকেট খোলা আছে কিনা তা পরীক্ষা করুন।
| বিস্তারিত | |||||
|---|---|---|---|---|---|
| পরামিতি | 
 | ||||
| রিটার্নস |  UDP সকেট খোলা আছে কিনা।  | 
otUdpNewMessage
otMessage * otUdpNewMessage( otInstance *aInstance, const otMessageSettings *aSettings )
একটি UDP বার্তা পাঠানোর জন্য একটি নতুন বার্তা বাফার বরাদ্দ করুন৷
| বিস্তারিত | |||||
|---|---|---|---|---|---|
| পরামিতি | 
 | ||||
| রিটার্নস |  কোনো বার্তা বাফার উপলব্ধ না হলে বা পরামিতি অবৈধ হলে বার্তা বাফার বা NULL-এর একটি পয়েন্টার৷ | 
otMessageFree
otUdpওপেন
otError otUdpOpen( otInstance *aInstance, otUdpSocket *aSocket, otUdpReceive aCallback, void *aContext )
একটি UDP/IPv6 সকেট খুলুন।
| বিস্তারিত | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| পরামিতি | 
 | ||||||||
| রিটার্ন মান | 
 | 
otUdpRemoveReceiver
otError otUdpRemoveReceiver( otInstance *aInstance, otUdpReceiver *aUdpReceiver )
একটি UDP রিসিভার সরিয়ে দেয়।
| বিস্তারিত | |||||
|---|---|---|---|---|---|
| পরামিতি | 
 | ||||
| রিটার্ন মান | 
 | 
otUdp পাঠান
otError otUdpSend( otInstance *aInstance, otUdpSocket *aSocket, otMessage *aMessage, const otMessageInfo *aMessageInfo )
একটি UDP/IPv6 বার্তা পাঠান।
 রিটার্ন মান OT_ERROR_NONE হলে, OpenThread aMessage এর মালিকানা নেয় এবং কলারকে আর aMessage উল্লেখ করা উচিত নয়। যদি ফেরত মান OT_ERROR_NONE না হয়, কলকারী aMessage এর মালিকানা ধরে রাখে, যদি বার্তা বাফারের আর প্রয়োজন না হয় তাহলে aMessage মুক্ত করা সহ।
| বিস্তারিত | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| পরামিতি | 
 | 
| বিস্তারিত | |||||||
|---|---|---|---|---|---|---|---|
| রিটার্ন মান | 
 | 
otUdpSendDatagram
otError otUdpSendDatagram( otInstance *aInstance, otMessage *aMessage, otMessageInfo *aMessageInfo )
সকেট ছাড়াই একটি UDP বার্তা পাঠায়।
| বিস্তারিত | |||||||
|---|---|---|---|---|---|---|---|
| পরামিতি | 
 | ||||||
| রিটার্ন মান | 
 | 
সম্পদ
OpenThread API রেফারেন্স বিষয়গুলি উৎস কোড থেকে উদ্ভূত হয়, যা GitHub- এ উপলব্ধ। আরও তথ্যের জন্য, বা আমাদের ডকুমেন্টেশনে অবদান রাখতে, সম্পদ দেখুন।