Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: ThingPlug_WiFi_Example
Network.cpp File Reference
TCP Socket 통신을 위한 모듈 More...
Go to the source code of this file.
Functions | |
| void | CloseSocket () |
| 서버와 연결된 TCP Socket을 닫는다. | |
| int | CheckSocket () |
| TCP Socket 세션 유지를 확인한다. | |
| int | Connect () |
| TCP Socket을 연결한다. | |
| int | WriteTCP (char *pBuf, int nLen) |
| TCP Socket에 Write한다. | |
| int | ReadTCP (char *pBuf, const int nMaxlen) |
| TCP Socket을 Read한다. | |
| int | ReadTCP2 (char *pBuf, const int nMaxlen, byte blocking) |
| TCP Socket을 Read한다. | |
Detailed Description
TCP Socket 통신을 위한 모듈
- Date:
- 2015/07/20
- Version:
- 0.0.1.0
Definition in file Network.cpp.
Function Documentation
| int CheckSocket | ( | ) |
TCP Socket 세션 유지를 확인한다.
세션이 연결이 되어 있지 않다면 연결을 시도한다.
- Returns:
- 성공 : GMMMP_SUCCESS, 실패 : ErrorCode.h 참조
Definition at line 29 of file Network.cpp.
| void CloseSocket | ( | ) |
서버와 연결된 TCP Socket을 닫는다.
Definition at line 17 of file Network.cpp.
| int Connect | ( | ) |
TCP Socket을 연결한다.
- Returns:
- 성공 : GMMMP_SUCCESS, 실패 : ErrorCode.h 참조
Definition at line 34 of file Network.cpp.
| int ReadTCP | ( | char * | _pBuf, |
| const int | _nMaxlen | ||
| ) |
TCP Socket을 Read한다.
- Parameters:
-
_pBuf Read 버퍼 포인트. _nMaxlen Read 버퍼 최대 크기
- Returns:
- 성공 : GMMMP_SUCCESS, 실패 : ErrorCode.h 참조
Definition at line 69 of file Network.cpp.
| int ReadTCP2 | ( | char * | _pBuf, |
| const int | _nMaxlen, | ||
| byte | blocking | ||
| ) |
TCP Socket을 Read한다.
(Blocking/Non-blocking 지원)
- Parameters:
-
_pBuf Read 버퍼 포인트. _nMaxlen Read 버퍼 최대 크기 blocking blocking: 1, non-blocking: 0
- Returns:
- 성공 : GMMMP_SUCCESS, 실패 : ErrorCode.h 참조
Definition at line 76 of file Network.cpp.
| int WriteTCP | ( | char * | pBuf, |
| int | nLen | ||
| ) |
TCP Socket에 Write한다.
- Parameters:
-
pBuf Write 버퍼 포인트. nLen Write 버퍼 크기.
- Returns:
- 성공 : GMMMP_SUCCESS, 실패 : ErrorCode.h 참조
Definition at line 58 of file Network.cpp.
Generated on Tue Jul 12 2022 14:17:05 by
1.7.2