mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-24 06:08:39 +01:00
new socket for slsDetector
This commit is contained in:
@@ -1,17 +1,19 @@
|
||||
#pragma once
|
||||
#include "DataSocket.h"
|
||||
#include <sys/socket.h>
|
||||
#include <sys/types.h>
|
||||
#include <netdb.h>
|
||||
#include <string>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
namespace sls{
|
||||
namespace sls {
|
||||
|
||||
class ClientSocket: public DataSocket{
|
||||
public:
|
||||
ClientSocket(const std::string& hostname, uint16_t port_number);
|
||||
int connect();
|
||||
private:
|
||||
class ClientSocket : public DataSocket {
|
||||
public:
|
||||
ClientSocket(const std::string &hostname, uint16_t port_number);
|
||||
int sendCommandThenRead(int fnum, void *args, size_t args_size, void *retval, size_t retval_size);
|
||||
|
||||
private:
|
||||
void readReply(int &ret, void *retval, size_t retval_size);
|
||||
struct sockaddr_in serverAddr {};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user