Remember
Register
Home
/
Support
/
Support Forum
/
After using sock_init() where can I find the parameter for sock_close(&?)
Digi Forum
All Activity
Q&A
Questions
Hot!
Unanswered
Tags
Categories
Users
Ask a Question
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.
All categories
Digi Remote Manager
(387)
Python
(1,017)
RF Solutions and XBee
(8,439)
Digi TransPort
(789)
Digi Connect Cellular
(448)
DAL
(5)
Embedded Devices
(4,171)
Google Coral
(2)
Rabbit
(3,200)
Rabbit Software
(519)
Console Servers
(354)
Modbus and Industrial Automation
(246)
Realport
(603)
Serial Servers
(837)
Satellite Modules
(25)
USB
(1,273)
Serial Cards
(715)
ConnectPort Display
(58)
Feedback/Wish List
(93)
Other/Legacy
(377)
After using sock_init() where can I find the parameter for sock_close(&?)
0
votes
I am opening a smtp socket with sock_init and tries to use sock_close(?) after the e-mail has been tranfered.
The compiler requires a parameter for sock_close(?)
How will I find this? Example code SMTP_TLS.C were I put in sock_init() instead of sock_init_or_exit(1) and then sock_close(&?) in the end.
rcm4000
smtp
email
asked
Jan 9, 2015
in
Rabbit Software
by
Kenneth43
New to the Community
(
1
point)
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1 Answer
0
votes
You will close whatever socket you opened. See an example in serialexa.c
For instance, you declare
tcp_Socket socket;
You open it with
(tcp_open(socket,0,vs_info.dest_ip,vs_info.dest_port,NULL)
and close with
sock_close(socket);
answered
Jan 9, 2015
by
trooper2
Veteran of the Digi Community
(
591
points)
Please
log in
or
register
to add a comment.
...