01-15-2016
Agreed. Is there a preferred way of doing that? Or just start an independent thread and close this one?
6 More Discussions You Might Find Interesting
1. IP Networking
Hi,
I am involved in a project on Debian. One of my requirement is to route an IP packet in my application to a proxy server and receive the reply from the proxy server as an IP packet. My application handles data at the IP frame level. My application creates an IP packet(with all the necessary... (0 Replies)
Discussion started by: Rajesh_BK
0 Replies
2. Cybersecurity
Setting up an Internet proxy - need help
Hi guys
In the past I had set a computer to act as an Internet proxy. This would be multihomed, and running dansguardian, tinyproxy and firehol. Then webmin would be used as interface. By time I realised that this system is far from effective....
Is... (0 Replies)
Discussion started by: ramon82
0 Replies
3. UNIX for Dummies Questions & Answers
In our country, blogspot.com, twitter.com facebook.com....and more excellent sites are blocked by the Goverment FireWall, who can help me ? thanks a lot for your kind. (2 Replies)
Discussion started by: shuke
2 Replies
4. Linux
I was wondering if it is possible to setup SFTP to go through the internet proxy while connecting to an internet location.
Problem: Client system is behind internet proxy. SFTP to any internet location fails as there is no documented way to configure SFTP to connect to internet locations through... (4 Replies)
Discussion started by: toobrown1
4 Replies
5. UNIX and Linux Applications
Hi Everyone!
A friend of mine is looking for a way to limit time his kids spent on the internet. I told him he should try out Squid proxy server. He now tries to find a way to limit total time spend on the internet to "X" hours a day, at any time during the day.
I remember there are built-in... (3 Replies)
Discussion started by: togr
3 Replies
6. IP Networking
I need to configure a proxy on my local machine to use an upstream proxy (installed on another machine). The upstream proxy requires Digest/NTLM authorization. I want the local proxy to deal with the upstream proxy's authorization details and provides authorization free access to users that connect... (0 Replies)
Discussion started by: Russel
0 Replies
LEARN ABOUT SUNOS
unfreezestr
freezestr(9F) Kernel Functions for Drivers freezestr(9F)
NAME
freezestr, unfreezestr - freeze, thaw the state of a stream
SYNOPSIS
#include <sys/stream.h>
#include <sys/ddi.h>
void freezestr(queue_t *q);
void unfreezestr(queue_t *q);
INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI).
PARAMETERS
q Pointer to the message queue to freeze/unfreeze.
DESCRIPTION
freezestr() freezes the state of the entire stream containing the queue pair q. A frozen stream blocks any thread attempting to enter any
open, close, put or service routine belonging to any queue instance in the stream, and blocks any thread currently within the stream if it
attempts to put messages onto or take messages off of any queue within the stream (with the sole exception of the caller). Threads blocked
by this mechanism remain so until the stream is thawed by a call to unfreezestr().
Drivers and modules must freeze the stream before manipulating the queues directly (as opposed to manipulating them through programmatic
interfaces such as getq(9F), putq(9F), putbq(9F), etc.)
CONTEXT
These routines may be called from any stream open, close, put or service routine as well as interrupt handlers, callouts and call-backs.
SEE ALSO
Writing Device Drivers
STREAMS Programming Guide
NOTES
The freezestr() and unfreezestr() functions can have a serious impact on system performance. Their use should be very limited. In most
cases, there is no need to use freezestr() and there are usually better ways to accomplish what you need to do than by freezing the stream.
Calling freezestr() to freeze a stream that is already frozen by the caller will result in a single-party deadlock.
The caller of unfreezestr() must be the thread who called freezestr().
STREAMS utility functions such as getq(9F), putq(9F), putbq(9F), and so forth, should not be called by the caller of freezestr() while the
stream is still frozen, as they indirectly freeze the stream to ensure atomicity of queue manipulation.
SunOS 5.10 17 Oct 2000 freezestr(9F)