-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding namespaces to all client headers.
- Loading branch information
Showing
34 changed files
with
179 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#pragma once | ||
|
||
#include <ctime> | ||
|
||
#ifndef _WIN32 | ||
# include <sys/select.h> | ||
#else | ||
# include <winsock.h> | ||
#endif | ||
|
||
namespace uda::authentication { | ||
|
||
void udaUpdateSelectParms(int fd, fd_set *rfds, struct timeval *tv); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
#ifndef UDA_CLIENT_CLIENTXDRSTREAM_H | ||
#define UDA_CLIENT_CLIENTXDRSTREAM_H | ||
#pragma once | ||
|
||
#include <rpc/rpc.h> | ||
#include <utility> | ||
|
||
std::pair<XDR*, XDR*> clientCreateXDRStream(); | ||
namespace uda::client { | ||
|
||
#endif // UDA_CLIENT_CLIENTXDRSTREAM_H | ||
std::pair<XDR *, XDR *> clientCreateXDRStream(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
#ifndef UDA_CLIENT_CLOSEDOWN_H | ||
#define UDA_CLIENT_CLOSEDOWN_H | ||
#pragma once | ||
|
||
#include "clientserver/socketStructs.h" | ||
|
||
#ifdef FATCLIENT | ||
# define closedown closedownFat | ||
#endif | ||
|
||
namespace uda::client { | ||
|
||
enum class ClosedownType { | ||
CLOSE_SOCKETS = 0, | ||
CLOSE_ALL = 1, | ||
}; | ||
|
||
int closedown(ClosedownType type, uda::client_server::SOCKETLIST* socket_list, XDR* client_input, XDR* client_output, | ||
bool* reopen_logs); | ||
int closedown(ClosedownType type, uda::client_server::SOCKETLIST *socket_list, XDR *client_input, XDR *client_output, | ||
bool *reopen_logs); | ||
|
||
#endif // UDA_CLIENT_CLOSEDOWN_H | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
#pragma once | ||
|
||
#ifndef UDA_CLIENT_CONNECTION_H | ||
# define UDA_CLIENT_CONNECTION_H | ||
#include "clientserver/socketStructs.h" | ||
#include "clientserver/udaStructs.h" | ||
|
||
# include "clientserver/socketStructs.h" | ||
# include "clientserver/udaStructs.h" | ||
#include "closedown.h" | ||
|
||
# include "closedown.h" | ||
namespace uda::client { | ||
|
||
int connectionOpen(); | ||
int reconnect(uda::client_server::ENVIRONMENT* environment, XDR** client_input, XDR** client_output, | ||
time_t* tv_server_start, int* user_timeout); | ||
int createConnection(XDR* client_input, XDR* client_output, time_t* tv_server_start, int user_timeout); | ||
|
||
int reconnect(uda::client_server::ENVIRONMENT *environment, XDR **client_input, XDR **client_output, | ||
time_t *tv_server_start, int *user_timeout); | ||
|
||
int createConnection(XDR *client_input, XDR *client_output, time_t *tv_server_start, int user_timeout); | ||
|
||
void closeConnection(ClosedownType type); | ||
|
||
int clientWriteout(void* iohandle, char* buf, int count); | ||
int clientReadin(void* iohandle, char* buf, int count); | ||
int clientWriteout(void *iohandle, char *buf, int count); | ||
|
||
int clientReadin(void *iohandle, char *buf, int count); | ||
|
||
#endif // UDA_CLIENT_CONNECTION_H | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.