mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 18:17:59 +02:00
wipg
This commit is contained in:
@ -1,35 +1,15 @@
|
||||
#pragma once
|
||||
/**
|
||||
* Get UDP socket desicriptor
|
||||
* @param udp port index
|
||||
*/
|
||||
int getUdPSocketDescriptor(int index);
|
||||
|
||||
/**
|
||||
* Set udp destination
|
||||
* @param index udp port index
|
||||
* @param ip udp destination ip
|
||||
* @param port udp destination port
|
||||
*/
|
||||
int setUDPDestinationDetails(int index, const char *ip,
|
||||
void setupUDPCommParameters();
|
||||
|
||||
int getUdPSocketDescriptor(int iRxEntry, int index);
|
||||
|
||||
void setNumberOfUDPDestinations(int value);
|
||||
|
||||
int setUDPDestinationDetails(int iRxEntry, int index, const char *ip,
|
||||
unsigned short int port);
|
||||
|
||||
/**
|
||||
* Create udp socket
|
||||
* @param index udp port index
|
||||
*/
|
||||
int createUDPSocket(int index);
|
||||
|
||||
/**
|
||||
* Writes to socket file descriptor
|
||||
* @param index udp port index
|
||||
* @param buf pointer to memory to write
|
||||
* @param length length of buffer to write to socket
|
||||
*/
|
||||
int sendUDPPacket(int index, const char *buf, int length);
|
||||
int sendUDPPacket(int iRxEntry, int index, const char *buf, int length);
|
||||
|
||||
/**
|
||||
* Close udp socket
|
||||
* @index udp port index
|
||||
*/
|
||||
void closeUDPSocket(int index);
|
||||
|
Reference in New Issue
Block a user