yangyang
Fork of WIZnetInterface by
Diff: arch/int/W7500x_toe.h
- Revision:
- 30:6feeaebad180
- Parent:
- 14:2101ab5ee40f
- Child:
- 32:26fc4b6c5784
diff -r c91884bd2713 -r 6feeaebad180 arch/int/W7500x_toe.h --- a/arch/int/W7500x_toe.h Tue Nov 17 06:35:55 2015 +0000 +++ b/arch/int/W7500x_toe.h Fri Nov 04 02:28:28 2016 +0000 @@ -128,7 +128,7 @@ */ bool setip(); - + bool disconnect(); /* * Open a tcp connection with the specified host on the specified port * @@ -136,7 +136,7 @@ * @param port port * @ returns true if successful */ - bool connect(int socket, const char * host, int port, int timeout_ms = 10*1000); + bool connect(int socket, const char * host, int port, int timeout_ms = 3*1000); /* * Set the protocol (UDP or TCP)