Displaying 14 results from an estimated 14 matches for "server_address".
2018 Sep 26
1
Re: [PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
On Thursday, 20 September 2018 10:50:14 CEST Richard W.M. Jones wrote:
> +# Choose a random port number in range [50000,59999]
> +imageio_port = random.randint(50000,60000)
> +
> [...]
> +
> +def server():
> + server_address = ("", imageio_port)
> + httpd = HTTPServer(server_address, RequestHandler)
> + httpd.serve_forever()
The random port can be chosen directly by the OS, using the special
port 0:
>>> from http.server import HTTPServer, SimpleHTTPRequestHandler
>>> server...
2008 Feb 28
1
C Code to connect to Asterisk Manager Interface
...e Asterisk command line console.
Here is my C code:
#include<stdio.h>
#include<netdb.h>
#include<unistd.h>
#include<string.h>
#include<arpa/inet.h>
#include<sys/types.h>
#include<sys/socket.h>
#include<netinet/in.h>
#define MAX_MSG_SIZE 512
#define SERVER_ADDRESS "192.168.0.150"
#define CLIENT_ADDRESS "192.168.0.150"
#define SERVER_PORT 5038
#define CLIENT_PORT 5100
int main()
{
int sd;
struct sockaddr_in serveraddr, clientaddr;
char msg[MAX_MSG_SIZE];
bzero((char *) &serveraddr, sizeof(serveraddr));
serverad...
2018 Sep 20
7
[PATCH v2 0/3] v2v: -o rhv-upload: Add a test.
v1 was here:
https://www.redhat.com/archives/libguestfs/2018-September/msg00121.html
v2:
- Rewrote patch 2 from scratch so it incorporates Nir's suggestions.
- Add fake module to EXTRA_DIST.
- Retested.
Unfortunately I am no longer able to test the ordinary conversion path
because ovirtsdk4 is incompatible with Fedora 29 / Python 3.7:
2018 Oct 09
2
Re: [PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...it.
> + def do_PUT(self):
>
This must read content-length bytes from self.rfile.
Both bugs are hidden by the fact that this server close the connection at
the end
of the request.
> + self.send_response(200)
> + self.end_headers()
> +
> +def server():
> + server_address = ("", imageio_port)
> + httpd = HTTPServer(server_address, RequestHandler)
> + httpd.serve_forever()
>
Using HTTP instead of HTTPS is not a good idea. We are not testing the same
code
on the client side.
It is easy to run HTTPS server using pre-created certificate, if we...
2018 Oct 15
0
Re: [PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
....
>
> Both bugs are hidden by the fact that this server close the connection at
> the end
> of the request.
Also this is covered by the attached patch.
> > + self.send_response(200)
> > + self.end_headers()
> > +
> > +def server():
> > + server_address = ("", imageio_port)
> > + httpd = HTTPServer(server_address, RequestHandler)
> > + httpd.serve_forever()
> >
>
> Using HTTP instead of HTTPS is not a good idea. We are not testing
> the same code on the client side.
>
> It is easy to run HTTPS serve...
2007 Feb 14
1
Rsync with Plink?
...find any information anywhere about the proper
syntax. What I've been trying, are all kinds of combination close to the
following:
rsync.exe -e "plink.exe -l username -pw password" --stats --compress
--recursive --archive --delete-after --files-from=backup_selections.txt
/cygdrive/c server_address://backup/Current
I've tried adding options -batch and -N as suggested by someone else to
no avail. I basically want to use rsync without a password or keys and
yes, I'm aware of the security implications.
Any suggestions would be much appreciated.
Thanks,
Max
2010 Apr 09
1
Problems connecting to samba with a valid user
...r 2010 16:49:50 CEST
Password must change: never
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
When I try to login from a client box on my server with user Popof using
smbclient (smbclient -U Popof -W MYGROUP -L <server_address>)
I get the following error in log files:
[2010/04/09 16:59:07, 3] auth/auth.c:check_ntlm_password(220)
check_ntlm_password: Checking password for unmapped user
[MYGROUP]\[Popof]@[POPOF] with the new password interface
[2010/04/09 16:59:07, 3] auth/auth.c:check_ntlm_password(22...
2011 Apr 13
4
[OT] Yealink Phones
...have one model.cfg file for the site-wide config and
then fine tune specific phones (setup different BLF keys and, obviously,
SIP logins for each device) in the MAC.cfg files.
In the y0000000000000.cfg file I have:-
#
# Auto Provision
[ autoprovision ]
path = /config/Setting/autop.cfg
server_address = http://192.168.1.13/yealink
[ autop_mode ]
path = /config/Setting/autop.cfg
# Mode 7 = at Power On and Weekly
mode = 7
# Sunday between 0100 and 0500
schedule_dayofweek=0
schedule_time = 01:00
schedule_time_end = 05:00
#
Re non-web based access. Obviously the config files are on...
2018 Sep 20
0
[PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...o" ] }''')
+
+ # eg. zero request. Just ignore it.
+ def do_PATCH(self):
+ self.send_response(200)
+ self.end_headers()
+
+ # Flush request. Ignore it.
+ def do_PUT(self):
+ self.send_response(200)
+ self.end_headers()
+
+def server():
+ server_address = ("", imageio_port)
+ httpd = HTTPServer(server_address, RequestHandler)
+ httpd.serve_forever()
+
+thread = threading.Thread(target = server, args = [], daemon = True)
+thread.start()
diff --git a/v2v/test-v2v-o-rhv-upload-module/ovirtsdk4/types.py b/v2v/test-v2v-o-rhv-upload-modu...
2018 Oct 15
3
Re: [PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...at this server close the connection at
> > the end
> > of the request.
>
> Also this is covered by the attached patch.
>
> > > + self.send_response(200)
> > > + self.end_headers()
> > > +
> > > +def server():
> > > + server_address = ("", imageio_port)
> > > + httpd = HTTPServer(server_address, RequestHandler)
> > > + httpd.serve_forever()
> > >
> >
> > Using HTTP instead of HTTPS is not a good idea. We are not testing
> > the same code on the client side.
> >...
2020 Jan 10
7
[v2v PATCH 0/6] Various Python pycodestyle fixes
Fixes the majority of the pycodestyle issues in the Python scripts, and
fix the existing test-v2v-python-syntax.sh to use pycodestyle to
actually perform style checks.
Pino Toscano (6):
PEP 8: adapt whitespaces in lines
PEP 8: move imports at the top
PEP 8: adapt empty lines
tests: find all the Python scripts for syntax checks
-o rhv-upload: remove unused Python imports
Revamp check
2018 Sep 19
4
[PATCH 0/3] v2v: -o rhv-upload: Add a test.
This adds a test of -o rhv-upload.
Obviously for an upstream test we cannot require a working oVirt
server. This test works by faking the ovirtsdk4 Python module,
setting PYTHONPATH so that the fake module is picked up instead of the
real module (if installed).
However it's more complex than that because the nbdkit plugin also
expects to talk to a working imageio HTTPS server. Therefore
2015 Mar 23
0
trying to connect to asterisk with softphone (logs, etc)
...9]
service.protocol.AccountManager.doLoadStoredAccounts().213 Failed to
load account {SERVER_PORT=6697,
ACCOUNT_ICON_PATH=resources/images/protocol/irc/irc32x32.png,
AUTO_CHANGE_USER_NAME=true, CHAT_ROOM_PRESENCE_TASK=true,
NO_PASSWORD_REQUIRED=false, ACCOUNT_UID=IRC:201 at 192.168.0.99:6697,
SERVER_ADDRESS=192.168.0.99, USER_ID=201, DEFAULT_ENCRYPTION=true,
PROTOCOL_NAME=IRC, ENCRYPTED_PASSWORD=/hcTkghmfRJWFXrWaKDMmA==,
CONTACT_PRESENCE_TASK=true}
java.lang.IllegalArgumentException: nick name contains invalid
characters: only letters, digits and -, \, [, ], `, ^, {, }, |, _ are
allowed
at
n...
2016 May 04
9
[PATCH 0/8] python: PEP 8 fixes
Hi,
this series cleans up the Python sources, either static or generated,
including also tests, to make them PEP 8 compliant; see
https://www.python.org/dev/peps/pep-0008/ and tools like pep8.
Almost all the issues reported by pep8 are fixed, reducing the issues
from 3818 to 7.
The changes should have no effect on the actual code, while it will
help Python users with consistency with other